package com.cjb.cloudsystem.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @Author chenjinbin
 * @Package IntelliJ IDEA
 * @Class SysLogOperateExcel
 * @Date 2024-01-24 下午9:21
 */
@Data
@Schema(description = "操作日志导出Excel实体类")
public class SysLogOperateExcel {

    /**
     * 操作人
     */
    @ExcelProperty(index = 0, value = "用户名")
    private String realName;
    /**
     * 模块名
     */
    @ExcelProperty(index = 1, value = "模块名")
    private String module;

    /**
     * 请求URI
     */
    @ExcelProperty(index = 2, value = "请求URI")
    private String reqUri;

    /**
     * 请求方法
     */
    @ExcelProperty(index = 3, value = "请求方法")
    private String reqMethod;

    /**
     * 登录地点
     */
    @ExcelProperty(index = 4, value = "登录地点")
    private String address;

    /**
     * 操作类型
     */
    @ExcelProperty(index = 5, value = "操作类型")
    private Integer operateType;

    /**
     * 执行时长
     */
    @ExcelProperty(index = 6, value = "执行时长")
    private Integer duration;

    /**
     * 操作状态  0：失败   1：成功
     */
    @ExcelProperty(index = 7, value = "操作状态")
    private Integer status;

    /**
     * 创建时间
     */
    @ExcelProperty(index = 8, value = "操作状态")
    private Date createTime;

}
